Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Большие косметические изменения #400

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

conc3rned
Copy link

Здравствуйте. В первую очередь хочу поблагодарить вас за такой чудесный и (к сожалению) актуальный софт. Работает как часы.

Решил в меру своих возможностей внести вклад в проект, пусть и небольшой. По сообщениям из коммитов должно быть понятно, о чём они. В первую очередь хотелось перевести всю документацию на Markdown, за основу был взят PR #217.

Дальше по мелочи, прошёлся линтерами по shell скриптам, где в меру адекватности предложенного принимал, а также по C коду. С этим языком я не знаком, поэтому прошу уделить побольше внимания этой части. Да и вообще, прошу всех неравнодушных проверить коммиты.

Кстати говоря, пока делал косметику C кода, в VS Code тот же самый IntelliSence выдал ошибки. Может, у меня просто нет каких-то зависимостей, но не похоже на это:

nfq/conntrack.c, lines 80,80, columns 26,28: pointer or reference to incomplete type "struct ip" is not allowed
nfq/conntrack.c, lines 80,80, columns 39,41: pointer or reference to incomplete type "struct ip" is not allowed
nfq/conntrack.c, lines 81,81, columns 26,28: pointer or reference to incomplete type "struct ip" is not allowed
nfq/conntrack.c, lines 81,81, columns 39,41: pointer or reference to incomplete type "struct ip" is not allowed
nfq/conntrack.c, lines 153,153, columns 20,26: pointer or reference to incomplete type "struct tcphdr" is not allowed
nfq/conntrack.c, lines 160,160, columns 21,27: pointer or reference to incomplete type "struct tcphdr" is not allowed
nfq/conntrack.c, lines 161,161, columns 20,26: pointer or reference to incomplete type "struct tcphdr" is not allowed
nfq/conntrack.c, lines 163,163, columns 12,18: pointer or reference to incomplete type "struct tcphdr" is not allowed
nfq/conntrack.c, lines 163,163, columns 32,38: identifier "TH_FIN" is undefined
nfq/conntrack.c, lines 163,163, columns 41,47: identifier "TH_RST" is undefined
nfq/conntrack.c, lines 173,173, columns 22,28: pointer or reference to incomplete type "struct tcphdr" is not allowed
nfq/conntrack.c, lines 179,179, columns 38,44: pointer or reference to incomplete type "struct tcphdr" is not allowed
nfq/conntrack.c, lines 180,180, columns 24,30: pointer or reference to incomplete type "struct tcphdr" is not allowed
nfq/conntrack.c, lines 182,182, columns 29,35: pointer or reference to incomplete type "struct tcphdr" is not allowed
nfq/conntrack.c, lines 188,188, columns 24,30: pointer or reference to incomplete type "struct tcphdr" is not allowed
nfq/conntrack.c, lines 190,190, columns 39,45: pointer or reference to incomplete type "struct tcphdr" is not allowed
nfq/conntrack.c, lines 191,191, columns 28,34: pointer or reference to incomplete type "struct tcphdr" is not allowed
nfq/conntrack.h, lines 117,117, columns 6,23: declaration is incompatible with "_Bool ConntrackPoolFeed(t_conntrack *p, const struct ip *ip, const struct ip6_hdr *ip6, const struct tcphdr *tcphdr, const struct udphdr *udphdr, size_t len_payload, t_ctrack **ctrack, _Bool *bReverse)" (declared at line 284 of "nfq/conntrack.c")
nfq/conntrack.h, lines 119,119, columns 6,31: declaration is incompatible with "_Bool ConntrackPoolDoubleSearch(t_conntrack *p, const struct ip *ip, const struct ip6_hdr *ip6, const struct tcphdr *tcphdr, const struct udphdr *udphdr, t_ctrack **ctrack, _Bool *bReverse)" (declared at line 241 of "nfq/conntrack.c")
nfq/conntrack.h, lines 120,120, columns 6,23: declaration is incompatible with "_Bool ConntrackPoolDrop(t_conntrack *p, const struct ip *ip, const struct ip6_hdr *ip6, const struct tcphdr *tcphdr, const struct udphdr *udphdr)" (declared at line 305 of "nfq/conntrack.c")
nfq/conntrack.h, lines 121,121, columns 6,27: declaration is incompatible with "void CaonntrackExtractConn(t_conn *c, _Bool bReverse, const struct ip *ip, const struct ip6_hdr *ip6, const struct tcphdr *tcphdr, const struct udphdr *udphdr)" (declared at line 121)

Буду рад ответить на все вопросы и сделать правки при необходимости.

@bol-van
Copy link
Owner

bol-van commented Sep 17, 2024

Вы бы хоть спрашивали нужно ли это или нет.
А получается вы зря потратили свое время

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants